package cn.openea.perpartner.componet.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.openea.perpartner.componet.web.entity.InsShareLog;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
 * 分享记录(ShareInsLog)表数据库访问层
 *
 * @author Weird077
 * @since 2023-03-01 15:40:13
 */
public interface InsShareLogMapper extends BaseMapper<InsShareLog> {
    /**
     * 查询过期的分享记录
     * @return 过期的分享记录
     */
    @Select("select * from component_share_ins_log where TIMESTAMPDIFF(SECOND, create_time,now() )*1000 > expire_time")
    List<InsShareLog> selectExpireData();
}

